package com.qf.shiro.base.handler;

import org.apache.shiro.authz.AuthorizationException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

//AuthorizationException
@RestControllerAdvice
public class GlobalHandlerException {
    @ExceptionHandler(AuthorizationException.class)
    public String handler() {
        return "没有权限";
    }
}
